package vip.kqsy.cloud.blog.server.pojo.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CommentAddDTO {
    @ApiModelProperty(value = "博客ID", required = true)
    @NotNull
    private Long blogId;

    @ApiModelProperty(value = "内容", required = true)
    @NotBlank
    private String content;

    @ApiModelProperty(value = "回复人")
    private Long replyId;

    @JsonIgnore
    private Long userId;
}
